import request from '@/utils/request'

// 查询招聘信息列表
export function listRECRUIT(query) {
  return request({
    url: '/person/RECRUIT/list',
    method: 'get',
    data: query
  })
}

// 查询招聘信息详细
export function getRECRUIT(id) {
  return request({
    url: '/person/RECRUIT/' + id,
    method: 'get'
  })
}

// 新增招聘信息
export function addRECRUIT(data) {
  return request({
    url: '/person/RECRUIT',
    method: 'post',
    data: data
  })
}

// 修改招聘信息
export function updateRECRUIT(data) {
  return request({
    url: '/person/RECRUIT',
    method: 'put',
    data: data
  })
}

// 删除招聘信息
export function delRECRUIT(id) {
  return request({
    url: '/person/RECRUIT/' + id,
    method: 'delete'
  })
}

// 提交内容管理
export function SubmitRECRUIT(id) {
  return request({
    url: '/person/RECRUIT/submit/' + id,
    method: 'put'
  })
}

// 发布内容管理
export function releaseRECRUIT(id) {
  return request({
    url: '/person/RECRUIT/release/' + id,
    method: 'put'
  })
}

// 取消发布内容管理
export function cancelsubmitRECRUIT(id) {
  return request({
    url: '/person/RECRUIT/cancelsubmit/' + id,
    method: 'put'
  })
}
